package com.uu.look.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.uu.skull.log.annotation.ControllerLog;
import org.uu.skull.result.Result;
import org.uu.skull.validate.group.AddGroup;
import org.uu.skull.validate.group.GetGroup;
import org.uu.skull.validate.group.IDGroup;
import org.uu.skull.validate.group.UpdateGroup;

/**
 * User : LiuKe
 * Date : 2017/3/14
 * Time : 10:30
 */

@RestController
@RequestMapping("company")
@ControllerLog
public class CompanyController {

    /**
     * 添加公司
     * @param company
     * @return String
     */
    @RequestMapping(value = "/add", method = RequestMethod.POST)
//    public Result addCompany(@RequestBody @Validated({AddGroup.class}) Company company , BindingResult bindingResult) {
    public Result addCompany() {
//        return companyService.addCompany(company);
        return null;
    }

//    private CompanyService companyService;
}
